<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.staticfile.net/font-awesome/4.7.0/css/font-awesome.css">
<style>
body {
  font-family: Arial;
}

* {
  box-sizing: border-box;
}
 
 form.example input[type=text] {
  padding: 15px;
  font-size: 15px;
  border: 1px solid white;
  float: left;
  width: 95%;
  background: #e0e0e5;
  margin: auto;
}

form.example button {
  float: left;
  width: 5%;
  padding: 15px;
  background: blue;
  color: rgb(229, 232, 230);
  font-size: 15px;
  border: 1px solid rgb(226, 228, 228);
  border-left: none;
  cursor: pointer;
}

form.example button:hover {
  background: #150280;
}

form.example::after {
  content: "";
  clear: both;
  display: table;
}

</style>
</head>
<body>

<p></p>
<form class="example" action="/">
  <input type="text" placeholder="搜索.." name="search">
  <button type="submit"><i class="fa fa-car"></i></button>
</form>



</body>
</html>